import { get, post } from '@/utils/operate'

const baseUrl = '/api/user'

export const loginAPI = ({ username, password }) => {
    return post(`${baseUrl}/login`, {
        username,
        password
    })
}

export const getUserInfoAPI = () => {
    return get(`${baseUrl}/info`)
}